package com.headingdata.d4_abstract;

public abstract class A {
    //- 类该有的成员（成员变量、方法、构造器）抽象类都可以有
    private  String name;
    private  String schoolName;
    //- 抽象类中不一定有抽象方法，有抽象方法的类一定是抽象类
    public abstract void print();

    public A() {
    }

    public A(String name, String schoolName) {
        this.name = name;
        this.schoolName = schoolName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }
}
